package com.example.demo.repository;

import com.example.demo.model.Drink;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DrinkRepository extends JpaRepository<Drink,Integer> {
    List<Drink> findDrinksByCategory_Id(Integer cid);//找到分类表里面的id
}
